package School;

/**
 * 定义普通人、老师、班主任、学生、学校5个类，每个类提供适当的成员变量和成员方法，
 * 要求具有良好的封装性，定义主类使之运行。
 * */

class common {
    public String name;
    private String sf;
    private String home_Address;
    private int age;
    private String id;
    private String phone_Number;



    public common(String name, String sf,String home_Address, int age, String id,String phone_Number) {
        this.name = name;
        this.sf = sf;
        this.home_Address = home_Address;
        this.age = age;
        this.id = id;
        this.phone_Number = phone_Number;
    }

    public String getName() {
        return name;
    }

    public String getSf() {
        return sf;
    }

    public String getHome_Address() {
        return home_Address;
    }

    public int getAge() {
        return age;
    }

    public String getId() {
        return id;
    }

    public String getPhone_Number() {
        return phone_Number;
    }

    public String show_Info(){
        return "大家好, 我叫 " + name +
                ", 我是一名 " + getSf() +
                ", 我的家庭住址是在 " + getHome_Address() +
                ", 我今年 " + age +
                "岁，我的电话号码是 " + getPhone_Number() ;
    }
}
